﻿using System;
using System.Data;
using Besture.Common;
using Besture.Dal;
using Besture.Model;

namespace Besture.Bll
{
    public partial class HotelsCategoryDac : BaseFacade
    {
        /// <summary>
        /// 根据类型获取数据
        /// </summary>
        /// <param name="types"></param>
        /// <returns></returns>
        public DataTable GetDataTableByCategoryType(string types)
        {
            try
            {
                base.CreateConnection();
                HotelsCategoryDal excuteDal = new HotelsCategoryDal();
                return excuteDal.GetDataTableByCategoryType(types);
            }
            catch (Exception e)
            {
                throw e;
            }
            finally
            {
                CloseConnection();
            }
        }
    }
}
